import request from '@/utils/http.js'

//地址
//售后地址列表
export const addressList = params => request('get','api/address/addressList',params)

//我的地址列表
export const userAddressList = params => request('get','api/address/userAddressList',params)

//编号获取我的地址
export const userAddressById = params => request('get','api/address/userAddressById',params)

//添加我的地址
export const userAddressAdd = params => request('post','api/address/userAddressAdd',params)

//编辑我的地址
export const userAddressEdit = params => request('post','api/address/userAddressEdit',params)

//删除我的地址
export const userAddressDelete = params => request('post','api/address/userAddressDelete',params)

//设置默认地址
export const userDefaultAddressEdit = params => request('post','api/address/userDefaultAddressEdit',params)

//批量删除我的地址
export const userAddressBatchDelete = params => request('post','api/address/userAddressBatchDelete',params)